<!--
 * @Author: linZeJian
 * @Date: 2022-04-25 11:00:53
 * @LastEditors: linZeJian
 * @LastEditTime: 2022-04-25 11:03:04
 * @Description: 
-->
<template>
  <div>
    <router-view></router-view>
  </div>
</template>
<script>
import { mapGetters } from "vuex";
import axios from "axios";
export default {
  name: "",
  components: {},
  props: {},
  data() {
    return {};
  },
  computed: {
    ...mapGetters(["user"]),
  },
  async created() {
    console.log(this.user.name);
    this.$store.dispatch("user/getUser");
    console.log(this.user.name);
    let rsp = await axios.get("/api/getUser");
    console.log('rsp :>> ', rsp);
  },
  mounted() {},
  methods: {},
  watch: {},
};
</script>
<style scoped></style>
